设置偏移

将视图从其默认位置沿 x 和 y 方向偏移指定的距离。

类型

offset?: {
  x: number
  y: number
}

示例

<Text 
  offset={{
    x: 10,
    y: -20
  }}
>偏移内容</Text>